package com.itheima.neibulei.demo06;

public class Demo {

    public static void main(String[] args) {
        Fu fu= new Fu() {
            @Override
            void dance() {
                System.out.println("dance");
            }
        };
        fu.dance();
        fu.sing();

    }
}
abstract class Fu{
    void sing(){
        System.out.println("sing");
    }
    abstract void dance();
}